package mm.chenchen.common.utils;


import java.util.List;

public class PageData<T> {
    List<T> data;
    long total;

    public PageData() {
    }

    public PageData(List<T> data, long total) {
        this.data = data;
        this.total = total;
    }

    public List<T> getData() {
        return this.data;
    }

    public PageData<T> setData(List<T> data) {
        this.data = data;
        return this;
    }

    public long getTotal() {
        return this.total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
}
